<?php
namespace app\api\controller;
// namespace app\zw_admin\controller;
use \think\Controller;
use think\Db;
// use think\Controller;
use think\Session;
use think\Request;
// use Endroid\QrCode\Tests;
// use qrcode;
// use alisms\SmsDemo;
class GoodslistController extends Controller
{

    public function goodsList()
    {
        $goodsList = db('goods')->order('gid desc')->select();
        //图片处理
        $list = Images($goodsList);
        if(!empty($list)){
            echo json_encode(array("status"=>1,'message'=>'请求成功!',"data"=>$list));
            exit;
        }else{
            echo json_encode(array("status"=>2,'message'=>'无数据!',"data"=>[]));
            exit;
        }
        
    }





}